package fr.umlv.m2.recipes.ideas.bean;

import java.io.Serializable;

/**
* Bean uses to define a link between a recipe and a keyword
* @author Christophe Chillan
*
*/
@SuppressWarnings("serial")
public class RecipeToKeywordBean implements Serializable{
	
	private int recipeId;
	private int keywordId;
	
	/**
	 * Create a recipe to keyword liaison
	 * @param recipesId
	 * @param keywordId
	 */
	public RecipeToKeywordBean(int recipesId, int keywordId){
		this.recipeId = recipesId;
		this.keywordId = keywordId;
	}
	
	/**
	 * Set the recipe id
	 * @param recipeId
	 */
	public void setRecipeId(int recipeId) {
		this.recipeId = recipeId;
	}
	
	/**
	 * Get the recipe id
	 * @return the id uses in the database
	 */
	public int getRecipeId() {
		return recipeId;
	}
	
	/**
	 * Set the keyword id
	 * @param keywordId
	 */
	public void setKeywordId(int keywordId) {
		this.keywordId = keywordId;
	}
	
	/**
	 * Get the keyword id
	 * @return the keyword id stored in the database
	 */
	public int getKeywordId() {
		return keywordId;
	}

}
